<?php
/**
 * 接受订单信息，插入队列
 */
include '../Include/db.php';
$dataIn=[
    'mobile'=>'1840824'.rand(1000,9999),
    'order_id'=>rand(10000,99999),
    'created_at'=>date('Y-m-d H:i:s',time()),
    'status'=>0
];
$db=DB::getIntance();
if($db->insert('order_queue',$dataIn)){
    echo "插入成功\n";
}else{
    echo "插入失败\n";
}